#include <time.h>
#include <stdio.h>

int main()
{
	time_t t;
	struct tm *gmt,*area;

	t = time(NULL);
	printf("the GMT is: %s",ctime(&t));

	area = localtime(&t);
	printf("Localtime is: %s",asctime(area));

	gmt = gmtime(&t);
	printf("GMT is: %s",asctime(gmt));

	return 0;
}
